/* 仪表板页面样式 */
:root {
    --primary-color: #271E4A;
    --secondary-color: #CA79C6;
    --light-purple: #D8D2FC;
    --pink: #E3A3E0;
    --red: #FF706F;
    --light-bg: #EDF4FC;
    --white: #FFFFFF;
    --shadow: 0px 4px 15px rgba(216, 210, 252, 0.64);
    --pink-shadow: 0px 4px 15px rgba(236, 180, 233, 1);
}

/* 卡片样式 */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: var(--white);
    border-radius: 47px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    height: 105px;
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-icon img {
    max-width: 100%;
    max-height: 100%;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.card-content p {
    font-size: 14px;
    margin: 5px 0 0;
    color: #000;
}

/* 通知横幅 */
.notification-banner {
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    position: relative;
}

.banner-icon {
    width: 64px;
    height: 64px;
    margin-right: 20px;
}

.banner-content {
    flex: 1;
}

.banner-content h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 5px;
    color: var(--primary-color);
}

.banner-content p {
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    color: var(--primary-color);
}

.upgrade-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 16px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--pink-shadow);
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background-color: var(--white);
    border-radius: 47px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: 418px;
}

.chart-container h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px;
    color: var(--primary-color);
}

.chart-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--light-bg);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.chart-placeholder img {
    position: absolute;
    max-width: 90%;
    max-height: 90%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
}

.legend-item::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-item:first-child::before {
    background-color: var(--pink);
}

.legend-item:last-child::before {
    background-color: var(--light-purple);
}

/* 预约表格 */
.appointment-table {
    background-color: var(--white);
    border-radius: 47px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.appointment-table h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px;
    color: var(--primary-color);
}

.table-container {
    width: 100%;
}

.table-header-row {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 1.5fr 1fr 1fr 0.5fr;
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.header-cell {
    font-size: 14px;
    font-weight: 300;
    color: var(--primary-color);
    opacity: 0.9;
}

.table-row {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr 1.5fr 1fr 1fr 0.5fr;
    padding: 10px 15px;
    border-bottom: 1px solid #E0E9F4;
}

.cell {
    font-size: 14px;
    color: var(--primary-color);
}

.disease-tag {
    display: inline-block;
    background-color: var(--red);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background-color: var(--white);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(185, 178, 226, 0.64);
}

.action-btn img {
    width: 15px;
    height: 15px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .table-header-row,
    .table-row {
        grid-template-columns: 0.5fr 1fr 1fr 1fr 1fr 0.5fr;
        font-size: 12px;
    }
} 